From: Jasper St. Pierre Date: Fri, 26 Apr 2013 01:16:33 +0000 (-0400) Subject: network: Remove some dead code X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~4268 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=a67b82e730f60a5e1f39ff0585bb282d0530911b;p=gnome-shell.git network: Remove some dead code We cannot possibly reach createActiveConnectionItem unless we have an active network, so the plain unreative menu item cannot ever be created. https://bugzilla.gnome.org/show_bug.cgi?id=698918 --- diff --git a/js/ui/status/network.js b/js/ui/status/network.js index 9eb811fcd..3f086b39f 100644 --- a/js/ui/status/network.js +++ b/js/ui/status/network.js @@ -1341,13 +1341,8 @@ const NMDeviceWireless = new Lang.Class({ else title = _("Connected (private)"); - if (this._activeNetwork) - this._activeConnectionItem = new NMNetworkMenuItem(this.device.active_access_point, undefined, - { reactive: false }); - else - this._activeConnectionItem = new PopupMenu.PopupImageMenuItem(title, - 'network-wireless-connected-symbolic', - { reactive: false }); + this._activeConnectionItem = new NMNetworkMenuItem(this.device.active_access_point, undefined, + { reactive: false }); this._activeConnectionItem.setOrnament(PopupMenu.Ornament.DOT); },